<?php

class send_letters  extends a_admin_controller{

    protected $srv;
    protected $letters;    

    public function __construct() {
        parent::__construct(FALSE);
        $this->srv = new service_l_newsl8r();
    }

    public function index(){
        $group_id = "1"; //@TO_DO : groups would be added in future
        $this->letters = $this->srv->get_all_letters($group_id);
    }

    public function  batch_assign() {
        $this->assign("letters", $this->letters);        
    }
    
    public function send(){
        sleep(5);
        echo "ok";
    }
}
?>
